package com.wanlian.router.ui;

import android.support.annotation.IdRes;
import android.support.v4.app.Fragment;

import com.smart.android.ui.BaseActivity;
import com.wanlian.router.R;

/**
 * Created by Hyu on 2018/9/2.
 * Email: fvaryu@qq.com
 */
public abstract class WlBaseActivity extends BaseActivity {


    protected final void showFragment(Fragment fragment, @IdRes int resId, String tag) {
        getSupportFragmentManager()
                .beginTransaction()
                .replace(resId, fragment, tag)
                .commit();
    }


    protected final void showFragment(Fragment fragment, String tag) {
        showFragment(fragment, R.id.fragment, tag);
    }
}
